<div id="slider_home">
	<div id="slider_main_home" class="wauto">
        <ul>
        <?php
		$slider	=	$db->database("ipos_film.phimid,
							ipos_film.tenphim,
							ipos_film.tentienganh,
							ipos_film.phimimg,
							ipos_film_info.phimtxt",
							"film JOIN ipos_film_info ON (ipos_film_info.phimid = ipos_film.phimid)",
							"ipos_film.phimhot = 1 ORDER BY ipos_film.phimtime DESC LIMIT 10");
		for($i=0;$i<count($slider);$i++) {
			$url_slider	=	url_link($slider[$i][1].'-'.$slider[$i][2],$slider[$i][0],'phim');
			?>
            <li>
            	<div class="slider_contents">
                	<div class="movie_name">
                    	<h3><a href="<?=$url_slider;?>" title="<?=$slider[$i][1];?>"><?=$slider[$i][1];?></a></h3>
                        <p><a href="<?=$url_slider;?>" title="<?=$slider[$i][2];?>"><?=$slider[$i][2];?></a></p>
                    </div>
                    <p class="contents"><?=$slider[$i][4];?></p>
                    <p class="wacth"><a class="orange-button" href="<?=$url_slider;?>">Xem phim »</a></p>
                </div>
                <div class="slider_images">
                	<span class="hot"></span>
                	<a href="<?=$url_slider;?>" title="<?=$slider[$i][1];?> - <?=$slider[$i][2];?>">
                    	<img src="<?=$slider[$i][3];?>" alt="<?=$slider[$i][1];?> - <?=$slider[$i][2];?>" />
                    </a>
                </div>
                <div class="clr"></div>
            </li>
            <?php
		}
		?>
        </ul>
    </div>
</div><!-- end #slider_home -->